package com.springboot.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class PersonModifyDTO {


    @NotEmpty(message = "姓名不能为空！")
    @NotNull(message = "姓名不能为空！")
    @Size(min = 2, max = 20, message = "姓名长度必须在2到20之间！")
    private String name;

    @NotEmpty(message = "性别不能为空！")
    @NotNull(message = "性别不能为空！")
    private String sex;

    private String highestEducation;

    @NotEmpty(message = "学校不能为空！")
    @NotNull(message = "学校不能为空！")
    @Size(min = 4, max = 20, message = "学校长度必须在4到20之间！")
    private String school;

    @NotEmpty(message = "专业不能为空！")
    @NotNull(message = "专业不能为空！")
    @Size(min = 2, max = 20, message = "专业长度必须在2到20之间！")
    private String profession;

    @NotNull(message = "工作时间不能为空！")
    private Float workingYears;

    @NotNull(message = "相关工作时间不能为空！")
    private Float  postExperience;

    @NotNull(message = "薪资不能为空！")
    private Float salary;

    private String skillsMastery;

    @NotEmpty(message = "省份不能为空！")
    @NotNull(message = "省份不能为空！")
    private String province;

    @NotEmpty(message = "地址不能为空！")
    @NotNull(message = "地址不能为空！")
    @Size(min = 10, max = 100, message = "地址长度必须在10到100之间！")
    private String address;


    private String personnelLevel;      //人员级别 人员级别：一至五级

    @NotEmpty(message = "个人简介不能为空！")
    @NotNull(message = "个人简介不能为空！")
    @Size(min = 10, max = 200, message = "个人简介长度必须在10到200之间！")
    private String personalProfile;

    private List<Integer> skillIds;
}
